<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript">
	$(function() {
		$("input[name=time]").attr("onclick", "timeSelect(this)");
	});
	
	function timeSelect(obj) {
		$.ajax({
			url: "inputInvoiceNum_rightForDays.ga",
			type: "post",
			dataType: "html",
			data: {
				days: $("input[name=date]").val(),
				time: obj.value
			},
			success: function(data) {
				$("#resultForDayRight").html(data);
			},
			error: function() {
				alert("오류");
			}
		});
	}
</script>

</head>
<body>

<h3 style="font-size:13pt;color:#888888;"> &nbsp; 타임게임</h3>
<input type="radio" name="time" value="15"/> pm 3시<p/>
<input type="radio" name="time" value="18"/> pm 6시<p/>
<input type="radio" name="time" value="21"/> pm 9시<p/>
<br/>
	
<h3 style="font-size:13pt;color:#888888;"> &nbsp; 스페셜게임</h3>
<c:if test="${fn:length(specialTimes) > 0 }">
	<c:forEach var="list" items="${specialTimes }">
		<input type="radio" name="time" value="${list }"/>
		<c:if test="${list > 12 }">
			pm ${list - 12 }시<p/>
		</c:if>
		<c:if test="${list <= 12 }">
			am ${list }시<p/>
		</c:if>
	</c:forEach>
</c:if>
<c:if test="${fn:length(specialTimes) <= 0 }">
	스페셜게임이<br/>
	없습니다.
</c:if>

</body>
</html>